package com.gaohe.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("card")
public class Card {
    private Long id;
    private String name;
    private String type;
    private double price;
    private double old_price;
    private Integer count;
    private Integer day;
    private String tags;
    private String image;
    private String description;
    private Integer status;
    private Integer sort;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    //创建卡
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    //修改卡
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

//    删除卡
    @TableLogic(value = "0",delval = "1")
    private Integer is_deleted;
}
